import axios from "../utils/axios"
export let getlist = ()=>{
    return (dispacth)=>{
        axios.get("/list").then(res=>{
            dispacth({
                type:"getlist",
                payload:res.data
            })
        })
    }
}
export let delfn = (index)=>{
    return {
        type:"delfn",
        payload:index
    }
}
export let addfn = (payload)=>{
    return {
        type:"addfn",
        payload
    }
}
export let eidtfn = (payload)=>{
    return {
        type:"eidtfn",
        payload
    }
}